import com.yanjingzheng.entity.BinaryObserver;
import com.yanjingzheng.entity.HexaObserver;
import com.yanjingzheng.entity.OctalObserver;
import com.yanjingzheng.entity.Subject;

/**
 * @Author Yenchingcheng
 * @Date 2023/9/11 14:51
 * @Description 测试类
 **/
public class Main {

    public static void main(String[] args) {
        Subject subject = new Subject();

        new BinaryObserver(subject);
        new OctalObserver(subject);
        new HexaObserver(subject);

        System.out.println("First state change:6");
        subject.setState(6);
        System.out.println("++++++++++++++++++++");
        System.out.println("Second state change:15");
        subject.setState(15);
    }
}
